<template>
  <div id="app">
      <div class="header">
          <h3>路由的命名视图测试</h3>
          <div>
            <router-link :to="{name:'Detail'}">点击查看详情</router-link>
          </div>
      </div>
      <div class="body1">
        <div class="body-left">
          <h3>默认路由视图</h3>
          <div class="default-view">
            <router-view></router-view>
          </div>
        </div>
        <div class="body-right">
          <h3>route-view3 路由视图</h3>
          <div class="right-view">
            <router-view name="titleView"></router-view>
          </div>
        </div>
      </div>
  </div>
</template>
<script>
  export default {
    name: 'App',
    data: function () {
      return {
        radio: '1',
      }
    },
  }
</script>

<style>
  .header, #app,.body,.body-left,.body-right,.default-view,.right-view{
    border: 1px red dashed;
    margin: 5px;
  }
  #app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    /*margin-top: 60px;*/
    width: 1080px;
    margin: 0 auto;

  }
  .header{
    height: 50px;
  }
  .body-left,.body-right{
    float: left;
    height: 500px;
    width: 500px;
  }
  .default-view,.right-view{
    height: 420px;
  }

</style>
